﻿@{
    ViewBag.Title = "SimpleModel";
    Layout = "~/Views/Shared/_BPage.cshtml";
}

<h2>Simple Model</h2>


<script type="text/javascript">
    var num = 0;
    var student = Backbone.Model.extend({
        initialize: function () {
            num++;
            //this.set("Num", num);
            ZEUS.DEBUG.log("You constructed " + num + " models!");
        },
        defaults: {
            Num: 0
        },
        printLog: function () {
            ZEUS.DEBUG.log("xxx");
        }
    });

    var stuA = new student();
    stuA.printLog();
</script>
